core: add namespace_fork() helper, that forks, joins a set of namespaces and forks...
authorLennart Poettering <lennart@poettering.net>
Mon, 12 Nov 2018 22:37:13 +0000 (23:37 +0100)
committerFelipe Sateler <fsateler@debian.org>
Thu, 6 Dec 2018 00:03:34 +0000 (00:03 +0000)
commit99906f694833456520c8cd0dc7bbdc145a934931
tree572dcd2ee6b95c0780eeba7930e069cb2dccb09e
parent8eb0145e1d4d61a4ca37c9af73590329eaec5435
core: add namespace_fork() helper, that forks, joins a set of namespaces and forks again

This helper is useful to ensure pidns/userns joining is properly
executed (as that requires a fork after the setns()). This is
particularly important when it comes to /proc/self/ access or
SCM_CREDENTIALS, but is generally the safer mode of operation.

(cherry picked from commit 27096982798e4f4d1498f9ce75c317b8d3376125)

Gbp-Pq: Name core-add-namespace_fork-helper-that-forks-joins-a-set-of-.patch
src/basic/process-util.c
src/basic/process-util.h